Re: [GENERAL] stored procedure revisited
От | Herouth Maoz |
---|---|
Тема | Re: [GENERAL] stored procedure revisited |
Дата | |
Msg-id | l0313030ab4290c8d4a2d@[147.233.159.109] обсуждение исходный текст |
Ответ на | stored procedure revisited (Yin-So Chen <ychen1@uswest.net>) |
Список | pgsql-general |
At 09:33 +0200 on 10/10/1999, Yin-So Chen wrote: > I think I am missing something very obvious here. Can someone please > kind enough explain to me, is there SP for postgresql and where I can > find more information about it? If there isn't, is there any plan for > implementation? Seems there needs to be an extra table that would hold > the parsed query tree and a rewrite of the parser to make SP work. AFAIK, there are no stored procedures in PostgreSQL. Maybe they are in a low priority, or the developers are just trying to avoid the problems of doing them. I'm not a developer, but I get the impression that sets of rows are not well-abstracted in PostgreSQL. I think this is also the reason why there are no subselects in target lists yet (correct me if I'm wrong). Anyway, sometimes the proper solution for things you stated (i.e. return a set of rows without using the entire query every time) are more correctly done with views. Other things (procedural things that don't result in sets of rows) are handled by functions. So you have a rather small niche for which only stored procedures are the most proper tool, and which is not covered in PostgreSQL. If you think this niche is important, maybe you should convince the rest of us here (I never needed to use a stored procedure so far, and I don't remember many people using them five years ago when I was in an Oracle environment). Or you could prioritize it with money... Herouth -- Herouth Maoz, Internet developer. Open University of Israel - Telem project http://telem.openu.ac.il/~herutma
В списке pgsql-general по дате отправления: